NET MESSAGE STRING$
This command will return a string from the current net message.
Return String=NET MESSAGE STRING$()
This command will return a string from the current net message
The net message must be of the string type or the command will fail. You can determine the type using the NET MESSAGE TYPE command.
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
print "HANDLE NET MESSAGES (Press X To Continue)"
rem Show Latest Return Values
print "STRING: ";ReturnString$
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message string 0,"hello world"
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=3 then ReturnString$=net message string$()
get net message
endwhile
endwhile
MULTIPLAYER Commands Menu
Index